package com.aop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @author: zxl
 * @Data:2021/3/24
 */
@ApiModel(value = "com-aop-domain-TestInterface")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "test_interface")
public class TestInterface {

    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "")
    private String id;

    /**
     * 接口地址
     */
    @TableField(value = "interface_url")
    @ApiModelProperty(value = "接口地址")
    private String interfaceUrl;

    /**
     * 访问方式
     */
    @TableField(value = "interface_method")
    @ApiModelProperty(value = "访问方式")
    private String interfaceMethod;

    /**
     * 类名
     */
    @TableField(value = "interface_class_name")
    @ApiModelProperty(value = "类名")
    private String interfaceClassName;

    /**
     * 访问方法名
     */
    @TableField(value = "interface_method_name")
    @ApiModelProperty(value = "访问方法名")
    private String interfaceMethodName;

    /**
     * 消耗时间
     */
    @TableField(value = "cost_time")
    @ApiModelProperty(value = "消耗时间")
    private Long costTime;

    /**
     * 访问次数
     */
    @TableField(value = "count")
    @ApiModelProperty(value = "访问次数")
    private Integer count;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "")
    private Date createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value = "")
    private Date updateTime;

    @TableField(value = "create_by")
    @ApiModelProperty(value = "")
    private String createBy;

    @TableField(value = "update_by")
    @ApiModelProperty(value = "")
    private String updateBy;

    public static final String COL_ID = "id";

    public static final String COL_INTERFACE_URL = "interface_url";

    public static final String COL_INTERFACE_METHOD = "interface_method";

    public static final String COL_INTERFACE_CLASS_NAME = "interface_class_name";

    public static final String COL_INTERFACE_METHOD_NAME = "interface_method_name";

    public static final String COL_COST_TIME = "cost_time";

    public static final String COL_COUNT = "count";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_UPDATE_BY = "update_by";
}